// 入口文件
import Vue from 'Vue' 
//1.1导入路由的包
import VueRouter from 'vue-router'
//1.2安装路由
Vue.use(VueRouter)


//1.3 导入自己的router.js 路由模块
import router from './router.js'


//2.1导入vue-resource
import VueResource from 'vue-resource'
//2.2安装vue-resource
Vue.use(VueResource)



//导入mui的样式
import './lib/mui/css/mui.min.css'
import './lib/mui/css/icons-extra.css'


// 导入Mint-UI组件
import {Header,Swipe,SwipeItem} from 'mint-ui'
Vue.component(Header.name,Header)
Vue.component(Swipe.name,Swipe)
Vue.component(SwipeItem.name,SwipeItem)


// 导入跟组件
import app from  './App.vue'     
var vm = new Vue({
     el:'#app',
     render: c => c(app),
     router //1.4挂载路由对象到VM实例上

})